<?php
/**
 * Twitter/Apalogページャ モデル
 *
 * @package 	apamanshop
 * @author　	ishibashi-t
 * @copyright　	
 * @date 		2011/08/19 新規作成
 * @note
 * 	加盟店サイト（メンバーサイト）恒久対応
 */
class Shop_Model_TweetAndBlogPager extends Apm_Helper_Base
{
	/**
	 * Twitter/ApalogページャHTML取得
     * 	@param unknown_type $action
     * 	@param unknown_type $total_count
     * 	@param unknown_type $current_page
     * 	@param unknown_type $per_page
     * 	@param unknown_type $range
     * 	@param unknown_type $paging_params
     * 	@param unknown_type $shopcd
     * 	@param unknown_type $search
	 */
    public function getPagingNaviHtml($action, $total_count, $current_page, $per_page, $range, $paging_params,$shopcd,$search="")
    {
        $this->_template_file_path = APPLICATION_PATH . '/modules/shop/views/helpers/shoppage/' . 'pager_helper.tpl';

        if (isset($paging_params['page'])){
            unset($paging_params['page']);
        }
        $paging_info = array();
        $paging_info = Apm_Util::generatePager($total_count, $current_page, $per_page, $range);
        $paging_info['per_page'] = $per_page;
        $paging_info['shopcd'] = $shopcd;
        $paging_info['search'] = $search;
        $paging_info['action'] = $action;
        $paging_info['hiddenTag'] = Apm_Util::generateHiddenTag($paging_params);
        return $this->fetch($paging_info);
    }

}
?>
